How to structure long pages by splitting them into smaller chunks, by paragraph, page, or any other logical breaking point.
helpers.splitContentIntoRecords()
helper to split the page into smaller chunks.distinct
parameter to true
, Algolia ensures only the most relevant of these duplicate records is shown. You decide what counts as ‘distinct’ by choosing a meaningful attribute, like the title of a section.
distinct
to true
section
as your attributeForDistinct
.distinct
featuredistinct
from Algolia’s dashboard or API.
section
, as the attributeForDistinct
distinct
to true
to deduplicate your results.true
.